import requests
class config:
    def __init__(self,url):
        self.url=url
        self.session=requests.session()
    def request(self,method,path,**kwargs):
        url=f'{self.url}{path}'
        requests=self.session.request(method,url,**kwargs)
        return requests

    def post(self,path,**kwargs):
        return self.request('POST',path,**kwargs)

    def get(self,path,**kwargs):
        return self.request('GET',path,**kwargs)
    def delete(self,path,**kwargs):
        return self.request('DELETE',path,**kwargs)
    def put(self,path,**kwargs):
        return self.request('PUT',path,**kwargs)